﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import Engine.Helpers.*;
    import Engine.*;

    public class FauxDecoration extends Decoration {

        private var DEPTH_SIZE_ADJUSTMENT:Number = 1;

        public function FauxDecoration(_arg1:String=null){
            super(_arg1);
            m_collisionFlags = Constants.COLLISION_NONE;
            var _local2:XML = getItem().xml;
            var _local3:XMLList = _local2.depthSizeAdjustment;
            _local2 = _local3[0];
            if (_local2){
                this.DEPTH_SIZE_ADJUSTMENT = _local2.@factor;
                if (this.DEPTH_SIZE_ADJUSTMENT == 0){
                    this.DEPTH_SIZE_ADJUSTMENT = 1;
                };
            };
        }
        override public function canBeDragged():Boolean{
            return (false);
        }
        override public function getToolTipHeader():String{
            return (null);
        }
        override public function isSellable():Boolean{
            return (false);
        }
        override public function getGameModeToolTipAction():String{
            return (null);
        }
        override public function getDepthSize():Vector3{
            var _local1:Vector3 = super.getDepthSize();
            _local1.x = (_local1.x * this.DEPTH_SIZE_ADJUSTMENT);
            _local1.y = (_local1.y * this.DEPTH_SIZE_ADJUSTMENT);
            return (_local1);
        }

    }
}//package Classes 
